<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('一键填单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-profitSbOrder-transFo">
            <input type="hidden" name="idValue" th:value="${idValue}"/>
            <input type="hidden" name="nownumber" th:value="${nownumbers}"/>
            <fieldset>
                <legend>转单数据</legend>
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">今日单号：</label>
                    <div class="col-sm-8">
                        <select name="ordernumber" class="form-control m-b"  required>
                            <option selected="selected" value="">请选择</option>
                            <option th:each="oreder : ${list}"  th:value="${oreder.ORDERNUMBER}" th:text="${oreder.ORDERNUMBER}"></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" style="color: red">注意:</label>
                    <div class="col-sm-8">
                        <label class="col-sm-3 control-label" style="color: red">转单有风险</label>
                        <label class="col-sm-3 control-label" style="color: red">保存需谨慎</label>
                        <label class="col-sm-3 control-label" style="color: red">操作不规范</label>
                        <label class="col-sm-3 control-label" style="color: red">自己两行泪</label>
                    </div>
                </div>
            </fieldset>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "agentInfo/profitSbOrder"
        $("#form-profitSbOrder-transFo").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                console.log("咋回事"+$('#form-profitSbOrder-transFo').serialize());
                $.operate.save(prefix + "/transFo", $('#form-profitSbOrder-transFo').serialize());
            }
        }
    </script>
</body>
</html>